<h2>History position of the page</h2>
<div class="break">
    <table class="table table-striped table table-striped table-bordered table-condensed">
        <tr>
            <th>#</th>
            <th>Date</th>
            <th>Position</th>
            <th>Landing page</th>
            <th>Page title</th>
            <th>Pageviews</th>
            <th>Bounces</th>
        </tr>
        <?php foreach ($landing_pages as $page): ?>
            <tr>
                <td><?php echo $page->rank ?></td>
                <td><?php echo $page->day . '-' . $page->month . '-' . $page->year ?></td>
                <td>
                    <?php if ($page->up_status == 1): ?>
                        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/up.gif"/>
                    <?php elseif ($page->up_status == 0): ?>
                        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/same.gif"/>
                    <?php else: ?>
                        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/down.gif"/>
                    <?php endif; ?>
                    <span style="font-size:8px"><?php echo $page->margin ?></span>
                </td>
                <td>
                    <?php echo $page->landing_page ?>
                </td>
                <td>
                    <?php echo $page->page_title ?>
                </td>
                <td><?php echo $page->page_views ?></td>
                <td><?php echo $page->bounce_rate ?></td>
            </tr>
        <?php endforeach; ?>
    </table>
</div>